<%@ page language="java" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>登录</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="css/login.css" rel="stylesheet" id="cssfile"
			type="text/css" />
	</head>

	<body>
		<script language="javascript">
    function validate(form)
    {  
       
       if(form.name.value.length==0){
            alert("用户名不能为空！");
            form.name.focus();
            return false
            }
       if(form.password.value.length==0){
            alert("密码不能为空！");
            form.password.focus();
            return false;
            }
    } 
    </script>
		<div id="content">
			<div id="abstractPic"></div>
			<div id="inputPic">
				<div id="loginTable">
					<form method="post" action="servlet/LoginServlet"
						onsubmit="return validate(this)">
						<input type="hidden" name="passwordMD5" value="" />
						<table style="width: 120px;" cellspacing="0" cellpadding="4">
							<tr>
								<td width="60px">
									用户名：
								</td>
							</tr>
							<tr>
								<td>
									<input type="text" name="user_name" value="" size="20"
										maxlength="20">
								</td>
							</tr>
							<tr>
								<td>
									密码：
								</td>
							</tr>
							<tr>
								<td>
									<input type="password" name="user_password" size="20"
										maxlength="14">
								</td>
							</tr>
							<tr>
								<td>
									<div>
					<input type="submit" name="login" value="登录" />
					<a href="register.jsp"><input type="button" name="register"
							value="注册" />
					</a>
					<br />
					<a href="/myblog/background/bglogin.jsp">后台</a>
				</div>
								</td>
							</tr>
						</table>
					</form>
				</div>
				

			</div>
	</body>
</html>
